﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using PerceptiveMCAPI;
using PerceptiveMCAPI.Types;
using System.Text;
//

namespace PerceptiveMCAPI_Test
{
   public partial class show_campaignContent : System.Web.UI.UserControl
   {
      public void Display( campaignContentOutput output )
      {
         this.Visible = true;
         // ------------------------------------------------------------ output as single field
         StringBuilder fmtOut = new StringBuilder( "HTML<hr />" );
         fmtOut.AppendFormat( "{0}<hr />", output.result.html );
         fmtOut.AppendFormat( "<br />Text<hr /><pre>{0}</pre><hr />", output.result.text );

         lblContent.Text = fmtOut.ToString();
      }
   }
}